//
//  YCGPoint.h
//  yuikemall
//
//  Created by Gang.Wang on 12-6-14.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#ifndef yuikemall_YCGPoint_h
#define yuikemall_YCGPoint_h

inline CGPoint fromUItoQuartz(CGPoint point,CGSize frameSize)
{
	point.y = frameSize.height - point.y;
	return point;
}

inline CGPoint scalePoint(CGPoint point,CGSize previousSize,CGSize currentSize)
{
	return CGPointMake(currentSize.width *point.x / previousSize.width, 
					   currentSize.height *point.y / previousSize.height);
}


#endif
